import request from "@/utils/request";

export function searchImage(data) {
    return request({
        //设置请求数据格式为json
        url: '/api/admin/imageList/list',
        method: 'post',
        data
    })
}



export function addImage(data, id) {
    return request({
        //设置请求数据格式为json
        headers: {"Content-Type": "application/json;charset=UTF-8"},
        url: `/api/admin/imageList/add/${id}`,
        method: 'post',
        data
    })
}